var URLA = "http://localhost:8081";

function myAjax(url, type, dataa) {
    dataa.token= $.cookie("token");
    let aa = null;
    $.ajax({
        url: URLA + url,
        data: dataa,
        type: type,
        dataType: 'json',
        async: false,
        success: function (data) {
            aa = data;
        }
    })
    return aa;
}